/**
 * Created by PVer on 2019-11-22.
 */
import axios from '@/libs/api.request'

export const del = (id) => {
  return axios.request({
    url: 'Order/del',
    method: 'get',
    params:{id:id}
  })
}
export const get = (id) => {
  return axios.request({
    url: 'Order/getDetail',
    method: 'get',
    params:{id:id}
  })
}
export const refund = (id,type) => {
  return axios.request({
    url: 'Order/refund',
    method: 'get',
    params:{order_id:id,type:type}
  })
}
export const getList = (params) => {
  return axios.request({
    url: 'Order/getList',
    method: 'get',
    params:params
  })
}

